@extends('layouts.ajax_master')
@section('app_js')
    <script type="text/javascript" src="/resource/js/J_main.js"></script>
    <script type="text/javascript">
        $('#teamTable').dataTable().fnDestroy();
        initDataTables();
    </script>
@stop
@section('content')
    <table id="example" class="table table-striped responsive-utilities jambo_table">
        <thead>
        <tr class="headings">
            <th>
                <input type="checkbox" class="tableflat">
            </th>
            <th>投资项目</th>
            <th>投资金额</th>
            <th>投资时间</th>
            <th>年收益率</th>
            <th>项目期限</th>
            <th>收益金额</th>
            <th>投资人</th>
            <th>项目类别</th>
            <th>项目状态</th>
            <th class=" no-link last"><span class="nobr">操作</span>
            </th>
        </tr>
        </thead>

        <tbody>
        @foreach($info as $k=>$v)
            <tr class="even pointer">
                <td class="a-center ">
                    <input type="checkbox" class="tableflat">
                </td>
                <td class=" ">{{$v->project_name}}</td>
                <td class=" ">{{$v->invest_money}}</td>
                <td class="">{{date('Y-m-d',$v->invest_time)}}</td>
                <td class=" ">{{$v->yield_rate}}</td>
                <td class=" ">{{$v->limit}}</td>
                <td class=" ">{{$v->yield_money}}</td>
                <td class=" ">{{$v->user_id}}</td>
                <td class=" ">@if($v->type == 1)上市通@else央票通@endif</td>
                <td class=" ">@if($v->status)盈利中@else已完结@endif</td>
                <td class=" last">
                    <a href="javascript:;"  class="delete"  data-invest_id="{{ $v->invest_id }}">删除</a>
                </td>
            </tr>
        @endforeach
        </tbody>

    </table>